//
//  CoolLog.m
//  CoolFramework
//
//  Created by Felix on 12-10-10.
//  Copyright (c) 2012年 FelixApp. All rights reserved.
//

#import "CoolLog.h"

@implementation CoolLog

+ (void)logErrorWithFormat:(NSString *)format, ... {
    if (COOLLOG_FLAG_ERROR & COOLLOG_LEVEL) {
        format = [NSString stringWithFormat:@"[ERROR] %@", format];
        va_list args;
        va_start(args, format);
        NSLogv(format, args);
        va_end(args);
    }
}

+ (void)logWarningWithFormat:(NSString *)format, ... {
    if (COOLLOG_FLAG_WARN & COOLLOG_LEVEL) {
        format = [NSString stringWithFormat:@"[WARNING] %@", format];
        va_list args;
        va_start(args, format);
        NSLogv(format, args);
        va_end(args);
    }
}

+ (void)logInfoWithFormat:(NSString *)format, ... {
    if (COOLLOG_FLAG_WARN & COOLLOG_LEVEL) {
        
        
        
        format = [NSString stringWithFormat:@"[INFO] %@", format];
        va_list args;
        va_start(args, format);
        NSLogv(format, args);
        va_end(args);
    }
}

@end
